package logic;

import io.CLI;
import java.util.ArrayList;
import executors.CommandHandler;
import objects.Command;
import objects.Result;

/**
 * This is the main flow of the program.
 * 
 * @author JJP
 * 
 */
public class Controller {

	public static Result processText(String input) {
		Command c = FormatProcessor.processUserInput(input);
		return (CommandHandler.executeCommand(c));
	}

	public static Result processCommand(Command c) {
		return CommandHandler.executeCommand(c);
	}
}
